import wx
import wx.grid

class GridFrame(wx.Frame):

    def __init__(self, parent):

        wx.Frame.__init__(self, parent)

        grid = wx.grid.Grid(self, -1)

        grid.CreateGrid(100, 10)

        grid.SetRowSize(0, 60)
        grid.SetColSize(0, 120)

        grid.SetCellValue(0, 0, 'wxGrid is good')

        grid.SetCellValue(0, 3, 'This is read.only')
        grid.SetReadOnly(0, 3)

        grid.SetCellValue(3, 3, 'green on grey')
        grid.SetCellTextColour(3, 3, wx.GREEN)
        grid.SetCellBackgroundColour(3, 3, wx.LIGHT_GREY)

        grid.SetColFormatFloat(5, 6, 2)
        grid.SetCellValue(0, 6, '3.1415')

        self.Show()


if __name__ == '__main__':

    app = wx.App(0)
    frame = GridFrame(None)
    app.MainLoop()